package ar.gov.hackaton.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class CategoriaCenso implements Comparable<CategoriaCenso> {
	
	@Id
	private String name;
	
	@Column
	private String label;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int compareTo(CategoriaCenso o) {
		return this.getLabel().compareTo(o.getLabel());
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
}
